/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package doan.quanlycanbo.portlet.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import doan.quanlycanbo.portlet.model.hoso;

/**
 * The persistence interface for the hoso service.
 *
 * <p>
 * Never modify or reference this interface directly. Always use {@link hosoUtil} to access the hoso persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
 * </p>
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Nguyen Tuan Vinh
 * @see hosoPersistenceImpl
 * @see hosoUtil
 * @generated
 */
public interface hosoPersistence extends BasePersistence<hoso> {
	/**
	* Caches the hoso in the entity cache if it is enabled.
	*
	* @param hoso the hoso to cache
	*/
	public void cacheResult(doan.quanlycanbo.portlet.model.hoso hoso);

	/**
	* Caches the hosos in the entity cache if it is enabled.
	*
	* @param hosos the hosos to cache
	*/
	public void cacheResult(
		java.util.List<doan.quanlycanbo.portlet.model.hoso> hosos);

	/**
	* Creates a new hoso with the primary key. Does not add the hoso to the database.
	*
	* @param mahoso the primary key for the new hoso
	* @return the new hoso
	*/
	public doan.quanlycanbo.portlet.model.hoso create(long mahoso);

	/**
	* Removes the hoso with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param mahoso the primary key of the hoso to remove
	* @return the hoso that was removed
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso remove(long mahoso)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	public doan.quanlycanbo.portlet.model.hoso updateImpl(
		doan.quanlycanbo.portlet.model.hoso hoso, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the hoso with the primary key or throws a {@link doan.quanlycanbo.portlet.NoSuchhosoException} if it could not be found.
	*
	* @param mahoso the primary key of the hoso to find
	* @return the hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByPrimaryKey(long mahoso)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hoso with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param mahoso the primary key of the hoso to find
	* @return the hoso, or <code>null</code> if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso fetchByPrimaryKey(long mahoso)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the hoso where mahoso = &#63; and groupId = &#63; or throws a {@link doan.quanlycanbo.portlet.NoSuchhosoException} if it could not be found.
	*
	* @param mahoso the mahoso to search with
	* @param groupId the group id to search with
	* @return the matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByE_G(long mahoso,
		long groupId)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hoso where mahoso = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
	*
	* @param mahoso the mahoso to search with
	* @param groupId the group id to search with
	* @return the matching hoso, or <code>null</code> if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso fetchByE_G(long mahoso,
		long groupId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the hoso where mahoso = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
	*
	* @param mahoso the mahoso to search with
	* @param groupId the group id to search with
	* @return the matching hoso, or <code>null</code> if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso fetchByE_G(long mahoso,
		long groupId, boolean retrieveFromCache)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds all the hosos where madonvi = &#63;.
	*
	* @param madonvi the madonvi to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByDonVi(
		long madonvi)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where madonvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madonvi the madonvi to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByDonVi(
		long madonvi, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where madonvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madonvi the madonvi to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByDonVi(
		long madonvi, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where madonvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madonvi the madonvi to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByDonVi_First(long madonvi,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where madonvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madonvi the madonvi to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByDonVi_Last(long madonvi,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where madonvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param madonvi the madonvi to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByDonVi_PrevAndNext(
		long mahoso, long madonvi,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where machucvu = &#63;.
	*
	* @param machucvu the machucvu to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByChucVu(
		long machucvu)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where machucvu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param machucvu the machucvu to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByChucVu(
		long machucvu, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where machucvu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param machucvu the machucvu to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByChucVu(
		long machucvu, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where machucvu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param machucvu the machucvu to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByChucVu_First(
		long machucvu,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where machucvu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param machucvu the machucvu to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByChucVu_Last(
		long machucvu,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where machucvu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param machucvu the machucvu to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByChucVu_PrevAndNext(
		long mahoso, long machucvu,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where mahocham = &#63;.
	*
	* @param mahocham the mahocham to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByHocHam(
		long mahocham)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where mahocham = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahocham the mahocham to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByHocHam(
		long mahocham, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where mahocham = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahocham the mahocham to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByHocHam(
		long mahocham, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where mahocham = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahocham the mahocham to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByHocHam_First(
		long mahocham,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where mahocham = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahocham the mahocham to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByHocHam_Last(
		long mahocham,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where mahocham = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param mahocham the mahocham to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByHocHam_PrevAndNext(
		long mahoso, long mahocham,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where mahocvi = &#63;.
	*
	* @param mahocvi the mahocvi to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByHocVi(
		long mahocvi)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where mahocvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahocvi the mahocvi to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByHocVi(
		long mahocvi, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where mahocvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahocvi the mahocvi to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByHocVi(
		long mahocvi, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where mahocvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahocvi the mahocvi to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByHocVi_First(long mahocvi,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where mahocvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahocvi the mahocvi to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByHocVi_Last(long mahocvi,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where mahocvi = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param mahocvi the mahocvi to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByHocVi_PrevAndNext(
		long mahoso, long mahocvi,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where macapuy = &#63;.
	*
	* @param macapuy the macapuy to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByCapUy(
		long macapuy)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where macapuy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param macapuy the macapuy to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByCapUy(
		long macapuy, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where macapuy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param macapuy the macapuy to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByCapUy(
		long macapuy, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where macapuy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param macapuy the macapuy to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByCapUy_First(long macapuy,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where macapuy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param macapuy the macapuy to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByCapUy_Last(long macapuy,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where macapuy = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param macapuy the macapuy to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByCapUy_PrevAndNext(
		long mahoso, long macapuy,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where madanhhieu = &#63;.
	*
	* @param madanhhieu the madanhhieu to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByDanhHieu(
		long madanhhieu)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where madanhhieu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madanhhieu the madanhhieu to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByDanhHieu(
		long madanhhieu, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where madanhhieu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madanhhieu the madanhhieu to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByDanhHieu(
		long madanhhieu, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where madanhhieu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madanhhieu the madanhhieu to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByDanhHieu_First(
		long madanhhieu,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where madanhhieu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madanhhieu the madanhhieu to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByDanhHieu_Last(
		long madanhhieu,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where madanhhieu = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param madanhhieu the madanhhieu to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByDanhHieu_PrevAndNext(
		long mahoso, long madanhhieu,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where madantoc = &#63;.
	*
	* @param madantoc the madantoc to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByDantoc(
		long madantoc)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where madantoc = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madantoc the madantoc to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByDantoc(
		long madantoc, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where madantoc = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madantoc the madantoc to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByDantoc(
		long madantoc, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where madantoc = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madantoc the madantoc to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByDantoc_First(
		long madantoc,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where madantoc = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param madantoc the madantoc to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByDantoc_Last(
		long madantoc,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where madantoc = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param madantoc the madantoc to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByDantoc_PrevAndNext(
		long mahoso, long madantoc,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where matongiao = &#63;.
	*
	* @param matongiao the matongiao to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByTonGiao(
		long matongiao)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where matongiao = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param matongiao the matongiao to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByTonGiao(
		long matongiao, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where matongiao = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param matongiao the matongiao to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByTonGiao(
		long matongiao, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where matongiao = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param matongiao the matongiao to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByTonGiao_First(
		long matongiao,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where matongiao = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param matongiao the matongiao to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByTonGiao_Last(
		long matongiao,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where matongiao = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param matongiao the matongiao to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByTonGiao_PrevAndNext(
		long mahoso, long matongiao,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where maxuatthan = &#63;.
	*
	* @param maxuatthan the maxuatthan to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByXuatthan(
		long maxuatthan)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where maxuatthan = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param maxuatthan the maxuatthan to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByXuatthan(
		long maxuatthan, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where maxuatthan = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param maxuatthan the maxuatthan to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByXuatthan(
		long maxuatthan, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where maxuatthan = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param maxuatthan the maxuatthan to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByXuatthan_First(
		long maxuatthan,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where maxuatthan = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param maxuatthan the maxuatthan to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByXuatthan_Last(
		long maxuatthan,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where maxuatthan = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param maxuatthan the maxuatthan to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByXuatthan_PrevAndNext(
		long mahoso, long maxuatthan,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where magdpt = &#63;.
	*
	* @param magdpt the magdpt to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByGDPT(
		long magdpt) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where magdpt = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param magdpt the magdpt to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByGDPT(
		long magdpt, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where magdpt = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param magdpt the magdpt to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByGDPT(
		long magdpt, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where magdpt = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param magdpt the magdpt to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByGDPT_First(long magdpt,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where magdpt = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param magdpt the magdpt to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByGDPT_Last(long magdpt,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where magdpt = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param magdpt the magdpt to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByGDPT_PrevAndNext(
		long mahoso, long magdpt,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos where mahesoluong = &#63;.
	*
	* @param mahesoluong the mahesoluong to search with
	* @return the matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByHeSoLuong(
		long mahesoluong)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos where mahesoluong = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahesoluong the mahesoluong to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByHeSoLuong(
		long mahesoluong, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos where mahesoluong = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahesoluong the mahesoluong to search with
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findByHeSoLuong(
		long mahesoluong, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds the first hoso in the ordered set where mahesoluong = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahesoluong the mahesoluong to search with
	* @param orderByComparator the comparator to order the set by
	* @return the first matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByHeSoLuong_First(
		long mahesoluong,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the last hoso in the ordered set where mahesoluong = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahesoluong the mahesoluong to search with
	* @param orderByComparator the comparator to order the set by
	* @return the last matching hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a matching hoso could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso findByHeSoLuong_Last(
		long mahesoluong,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds the hosos before and after the current hoso in the ordered set where mahesoluong = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mahoso the primary key of the current hoso
	* @param mahesoluong the mahesoluong to search with
	* @param orderByComparator the comparator to order the set by
	* @return the previous, current, and next hoso
	* @throws doan.quanlycanbo.portlet.NoSuchhosoException if a hoso with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.hoso[] findByHeSoLuong_PrevAndNext(
		long mahoso, long mahesoluong,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Finds all the hosos.
	*
	* @return the hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds a range of all the hosos.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @return the range of hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Finds an ordered range of all the hosos.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of hosos to return
	* @param end the upper bound of the range of hosos to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of hosos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the hoso where mahoso = &#63; and groupId = &#63; from the database.
	*
	* @param mahoso the mahoso to search with
	* @param groupId the group id to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByE_G(long mahoso, long groupId)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhosoException;

	/**
	* Removes all the hosos where madonvi = &#63; from the database.
	*
	* @param madonvi the madonvi to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByDonVi(long madonvi)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where machucvu = &#63; from the database.
	*
	* @param machucvu the machucvu to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByChucVu(long machucvu)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where mahocham = &#63; from the database.
	*
	* @param mahocham the mahocham to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByHocHam(long mahocham)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where mahocvi = &#63; from the database.
	*
	* @param mahocvi the mahocvi to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByHocVi(long mahocvi)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where macapuy = &#63; from the database.
	*
	* @param macapuy the macapuy to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByCapUy(long macapuy)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where madanhhieu = &#63; from the database.
	*
	* @param madanhhieu the madanhhieu to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByDanhHieu(long madanhhieu)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where madantoc = &#63; from the database.
	*
	* @param madantoc the madantoc to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByDantoc(long madantoc)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where matongiao = &#63; from the database.
	*
	* @param matongiao the matongiao to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByTonGiao(long matongiao)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where maxuatthan = &#63; from the database.
	*
	* @param maxuatthan the maxuatthan to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByXuatthan(long maxuatthan)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where magdpt = &#63; from the database.
	*
	* @param magdpt the magdpt to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByGDPT(long magdpt)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos where mahesoluong = &#63; from the database.
	*
	* @param mahesoluong the mahesoluong to search with
	* @throws SystemException if a system exception occurred
	*/
	public void removeByHeSoLuong(long mahesoluong)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the hosos from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where mahoso = &#63; and groupId = &#63;.
	*
	* @param mahoso the mahoso to search with
	* @param groupId the group id to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByE_G(long mahoso, long groupId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where madonvi = &#63;.
	*
	* @param madonvi the madonvi to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByDonVi(long madonvi)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where machucvu = &#63;.
	*
	* @param machucvu the machucvu to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByChucVu(long machucvu)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where mahocham = &#63;.
	*
	* @param mahocham the mahocham to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByHocHam(long mahocham)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where mahocvi = &#63;.
	*
	* @param mahocvi the mahocvi to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByHocVi(long mahocvi)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where macapuy = &#63;.
	*
	* @param macapuy the macapuy to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByCapUy(long macapuy)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where madanhhieu = &#63;.
	*
	* @param madanhhieu the madanhhieu to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByDanhHieu(long madanhhieu)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where madantoc = &#63;.
	*
	* @param madantoc the madantoc to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByDantoc(long madantoc)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where matongiao = &#63;.
	*
	* @param matongiao the matongiao to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByTonGiao(long matongiao)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where maxuatthan = &#63;.
	*
	* @param maxuatthan the maxuatthan to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByXuatthan(long maxuatthan)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where magdpt = &#63;.
	*
	* @param magdpt the magdpt to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByGDPT(long magdpt)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos where mahesoluong = &#63;.
	*
	* @param mahesoluong the mahesoluong to search with
	* @return the number of matching hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countByHeSoLuong(long mahesoluong)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Counts all the hosos.
	*
	* @return the number of hosos
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}